OpenGL 4.0 Shading Language Cookbook by Wolff David
Author:Wolff, David
Language: eng
Format: epub
Publisher: Packt Publishing
Where the one-dimensional Gaussian function is given by the following equation:
So if Cij is the color of the pixel at pixel location (i,j), the sum that we need to compute is given by the following equation:
This can be re-written using the fact that the two-dimensional Gaussian is a product of two one-dimensional Gaussians.
This implies that we can compute the Gaussian blur in two passes. In the first pass, we can compute the sum over j (the vertical sum) in the preceding equation and store the results in a temporary texture. In the second pass, we compute the sum over i (the horizontal sum) using the results from the previous pass.
Now, before we look at the code, there is one important point that has to be addressed. As we mentioned previously, the Gaussian weights must sum to one in order to be a true weighted average. Therefore, we need to normalize our Gaussian weights as in the following equation:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Color | Darkroom & Processing |
Digital Editing | Equipment |
Flash Photography | Handbooks & Manuals |
Lighting | Reference |
Shoot Sexy by Ryan Armbrust(17164)
Portrait Mastery in Black & White: Learn the Signature Style of a Legendary Photographer by Tim Kelly(16498)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16413)
Photographically Speaking: A Deeper Look at Creating Stronger Images (Eva Spring's Library) by David duChemin(16175)
Bombshells: Glamour Girls of a Lifetime by Sullivan Steve(13142)
Art Nude Photography Explained: How to Photograph and Understand Great Art Nude Images by Simon Walden(12379)
Perfect Rhythm by Jae(4642)
Pillow Thoughts by Courtney Peppernell(3448)
The Book of Joy by Dalai Lama(3258)
Good by S. Walden(2930)
The Pixar Touch by David A. Price(2753)
Fantastic Beasts: The Crimes of Grindelwald by J. K. Rowling(2559)
A Dictionary of Sociology by Unknown(2528)
Humans of New York by Brandon Stanton(2387)
Read This If You Want to Take Great Photographs by Carroll Henry(2315)
Stacked Decks by The Rotenberg Collection(2295)
On Photography by Susan Sontag(2148)
Photographic Guide to the Birds of Indonesia by Strange Morten;(2100)
Insomniac City by Bill Hayes(2094)